package cn.wxz1997.permission.service;

import cn.wxz1997.permission.dto.PermissionMenuDTO;
import cn.wxz1997.permission.pojo.Permission;
import cn.wxz1997.permission.util.Result;

import java.util.List;

/**
 * @Description: ${todo}
 * @Author: wxz1997
 * @Date 18-8-10下午3:49
 */
public interface PermissionService {

    List<PermissionMenuDTO> getMenuTree(Integer userId);

    List<PermissionMenuDTO> getPermissionTree();

    List<Permission> list();

    Permission add(Permission permission);

    Permission selectById(Integer id);

    Permission update(Permission permission);

    Integer delete(Integer id);
}
